<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" >

  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/turbolinks/5.2.0/turbolinks.js" integrity="sha256-iM4Yzi/zLj/IshPWMC1IluRxTtRjMqjPGd97TZ9yYpU=" crossorigin="anonymous"></script>
  <link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css?family=Cousine|Inconsolata" rel="stylesheet">
  <link rel="shortcut icon" type="image/png" href="/favicon.png">

  <link rel="stylesheet" href="/css/style.css">
  <link rel="stylesheet" href="/css/css/fontawesome-all.min.css">
  <link rel="stylesheet" href="/css/css/work-sans-v7.css">
  <script src="/js/main.js"></script>

  <!-- Begin Jekyll SEO tag v2.6.1 -->
<title>Steem Node Command Line Options | Hive Developer</title>
<meta name="generator" content="Jekyll v4.0.0" />
<meta property="og:title" content="Steem Node Command Line Options" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="All options available to steemd at command line interface" />
<meta property="og:description" content="All options available to steemd at command line interface" />
<link rel="canonical" href="node-cli.html" />
<meta property="og:url" content="node-cli.html" />
<meta property="og:site_name" content="Hive Developer" />
<meta property="og:type" content="article" />
<meta property="article:published_time" content="2020-08-26T11:52:22-07:00" />
<script type="application/ld+json">
{"description":"All options available to steemd at command line interface","mainEntityOfPage":{"@type":"WebPage","@id":"node-cli.html"},"@type":"BlogPosting","url":"node-cli.html","headline":"Steem Node Command Line Options","dateModified":"2020-08-26T11:52:22-07:00","datePublished":"2020-08-26T11:52:22-07:00","@context":"https://schema.org"}</script>
<!-- End Jekyll SEO tag -->


  
</head>
<body>
<header>
  <h1>
    <button type="button" class="open-nav" id="open-nav"></button>
    <a href="/"  class="logo-link"><img src="/images/logotype_black.svg" height="40" alt="Hive Developer logo"></a>
  </h1>

  
  <form action="/search/" method="get">
    <input type="text" name="q" id="search-input" placeholder="Search">
    <input type="submit" value="Search" style="display: none;">
  </form>
  

  <div id="sidebar" class="sidebar">
	
	
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/">
		<h6 class="ctrl-nav-section title">Introduction</h6>
		<ul class="cont-nav-section content">
			
				
					
					
						
						<li><a href="/#introduction-welcome">Welcome to Hive</a></li>
						
					
				
			
		</ul>
	</section>
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/quickstart/">
		<h6 class="ctrl-nav-section title">Quickstart</h6>
		<ul class="cont-nav-section content">
			
				
					
					
						
						<li><a href="/quickstart/#quickstart-choose-library">Choose Library</a></li>
						
					
						
						<li><a href="/quickstart/#quickstart-hive-full-nodes">Hive Nodes</a></li>
						
					
						
						<li><a href="/quickstart/#quickstart-testnet">Hive Testnet</a></li>
						
					
				
			
		</ul>
	</section>
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/tutorials/">
		<h6 class="ctrl-nav-section title">Tutorials</h6>
		<ul class="cont-nav-section content">
			
				
					
						<li><a href="/tutorials/#tutorials-javascript">Javascript</a></li>
					
				
					
						<li><a href="/tutorials/#tutorials-python">Python</a></li>
					
				
					
						<li><a href="/tutorials/#tutorials-ruby">Ruby</a></li>
					
				
					
						<li><a href="/tutorials/#tutorials-recipes">Recipes</a></li>
					
				
			
		</ul>
	</section>
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/services/">
		<h6 class="ctrl-nav-section title">Services</h6>
		<ul class="cont-nav-section content">
			
				
					
					
						
						<li><a href="/services/#services-hive-blog">hive.blog</a></li>
						
					
						
						<li><a href="/services/#services-hivesigner">HiveSigner</a></li>
						
					
						
						<li><a href="/services/#services-jussi">Jussi</a></li>
						
					
						
						<li><a href="/services/#services-imagehoster">ImageHoster</a></li>
						
					
						
						<li><a href="/services/#services-dhf">DHF</a></li>
						
					
				
			
		</ul>
	</section>
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/apidefinitions/">
		<h6 class="ctrl-nav-section title">Appbase API</h6>
		<ul class="cont-nav-section content">
			
				
					
					
						
						<li><a href="/apidefinitions/#apidefinitions-condenser-api">Condenser Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-bridge">Bridge</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-account-by-key-api">Account By Key Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-account-history-api">Account History Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-block-api">Block Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-database-api">Database Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-debug-node-api">Debug Node Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-follow-api">Follow Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-jsonrpc">Jsonrpc</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-market-history-api">Market History Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-network-broadcast-api">Network Broadcast Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-rc-api">Rc Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-reputation-api">Reputation Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-rewards-api">Rewards Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-tags-api">Tags Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-transaction-status-api">Transaction Status Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-witness-api">Witness Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-broadcast-ops">Broadcast Ops</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-broadcast-ops-communities">Broadcast Ops Communities</a></li>
						
					
				
			
		</ul>
	</section>
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/resources/">
		<h6 class="ctrl-nav-section title">Resources</h6>
		<ul class="cont-nav-section content">
			
				
					
					
						
						<li><a href="/resources/#resources-overview">Overview</a></li>
						
					
						
						<li><a href="/resources/#resources-client-libs">Client Libraries</a></li>
						
					
						
						<li><a href="/resources/#resources-bluepaper">Bluepaper</a></li>
						
					
						
						<li><a href="/resources/#resources-whitepaper">Whitepaper</a></li>
						
					
						
						<li><a href="/resources/#resources-tools">Tools</a></li>
						
					
						
						<li><a href="/resources/#resources-hivesigner-libs">Hivesigner Libs</a></li>
						
					
						
						<li><a href="/resources/#resources-hive-keychain">Hive Keychain</a></li>
						
					
						
						<li><a href="/resources/#resources-developeradvocate">Community & Help</a></li>
						
					
				
			
		</ul>
	</section>
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/glossary/">
		<h6 class="ctrl-nav-section title">Glossary</h6>
		<ul class="cont-nav-section content">
			
				
					
					
						
						<li><a href="/glossary/#glossary-chain-basics">Chain Basics</a></li>
						
					
						
					
						
						<li><a href="/glossary/#glossary-governance">Governance</a></li>
						
					
						
						<li><a href="/glossary/#glossary-transactions">Transactions</a></li>
						
					
						
						<li><a href="/glossary/#glossary-api">API</a></li>
						
					
						
						<li><a href="/glossary/#glossary-market">Market</a></li>
						
					
				
			
		</ul>
	</section>
	
</div>



  <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
</header>
<div class="main" id="top">
  <div class="hero">
    <h1 class="hero__h1">Hive Developer Portal </h1>
    <img class="hero__img" src="/images/honey-comb-92.png" style="position: relative; top: 10px;" />
  </div>
  <section id="tutorials-recipes-node-cli" class="row tutorials-recipes-node-cli">
	<h3>
		<a id="tutorials-recipes-node-cli">
			Steem Node Command Line Options
			
		</a>
	</h3>
	
		<span class="description"><p>All options available to <code class="highlighter-rouge">steemd</code> at command line interface</p>
</span>
	

	<p>Command line options are typically expressed with double-dash (e.g., <code class="highlighter-rouge">--replay-blockchain</code>):</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>steemd <span class="nt">--data-dir</span><span class="o">=</span><span class="nb">.</span> <span class="nt">--replay-blockchain</span>
</code></pre></div></div>

<p>Note that nearly all options available from <code class="highlighter-rouge">config.ini</code> can be set as command-line options.  See: <a href="/tutorials-recipes/node-config.html">Node Config</a></p>

<p>The following are <em>only</em> available as command-line options.</p>

<h3 id="sections">Sections</h3>

<ul>
  <li><a href="#disable-get-block"><code class="highlighter-rouge">disable-get-block</code></a></li>
  <li><a href="#statsd-record-on-replay"><code class="highlighter-rouge">statsd-record-on-replay</code></a></li>
  <li><a href="#transaction-status-rebuild-state"><code class="highlighter-rouge">transaction-status-rebuild-state</code></a></li>
  <li><a href="#p2p-force-validate"><code class="highlighter-rouge">p2p-force-validate</code></a></li>
  <li><del><a href="#force-validate"><code class="highlighter-rouge">force-validate</code></a></del></li>
  <li><a href="#replay-blockchain"><code class="highlighter-rouge">replay-blockchain</code></a></li>
  <li><a href="#force-open"><code class="highlighter-rouge">force-open</code></a></li>
  <li><a href="#resync-blockchain"><code class="highlighter-rouge">resync-blockchain</code></a></li>
  <li><a href="#stop-replay-at-block"><code class="highlighter-rouge">stop-replay-at-block</code></a></li>
  <li><a href="#advanced-benchmark"><code class="highlighter-rouge">advanced-benchmark</code></a></li>
  <li><a href="#set-benchmark-interval"><code class="highlighter-rouge">set-benchmark-interval</code></a></li>
  <li><a href="#dump-memory-details"><code class="highlighter-rouge">dump-memory-details</code></a></li>
  <li><a href="#check-locks"><code class="highlighter-rouge">check-locks</code></a></li>
  <li><a href="#validate-database-invariants"><code class="highlighter-rouge">validate-database-invariants</code></a></li>
  <li><a href="#database-cfg"><code class="highlighter-rouge">database-cfg</code></a></li>
  <li><a href="#memory-replay"><code class="highlighter-rouge">memory-replay</code></a></li>
  <li><a href="#chain-id"><code class="highlighter-rouge">chain-id</code></a></li>
  <li><a href="#account-history-rocksdb-immediate-import"><code class="highlighter-rouge">account-history-rocksdb-immediate-import</code></a></li>
</ul>

<h3 id="disable-get-block"><code class="highlighter-rouge">disable-get-block</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Disable <code class="highlighter-rouge">get_block</code> API call.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--disable-get-block</span>
</code></pre></div></div>

<h3 id="statsd-record-on-replay"><code class="highlighter-rouge">statsd-record-on-replay</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Records statsd events during replay</p>

<p>Used by plugin: <code class="highlighter-rouge">statsd</code></p>

<p>See: <a href="https://github.com/steemit/steem/issues/2276">#2276</a></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--statsd-record-on-replay</span>
</code></pre></div></div>

<h3 id="transaction-status-rebuild-state"><code class="highlighter-rouge">transaction-status-rebuild-state</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Indicates that the transaction status plugin must re-build its state upon startup.</p>

<p>Used by plugin: <code class="highlighter-rouge">transaction_status</code></p>

<p>See: <a href="/tutorials-recipes/plugin-and-api-list.html#transaction_status_api">Plugin &amp; API List</a>, <a href="https://github.com/steemit/steem/issues/2458">#2458</a></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--transaction-status-rebuild-state</span>
</code></pre></div></div>

<h3 id="p2p-force-validate"><code class="highlighter-rouge">p2p-force-validate</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Force validation of all transactions.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--p2p-force-validate</span>
</code></pre></div></div>

<h3 id="force-validate"><code class="highlighter-rouge">force-validate</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Force validation of all transactions.</p>

<p><strong>Deprecated in favor of:</strong> <code class="highlighter-rouge">p2p-force-validate</code></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--force-validate</span>
</code></pre></div></div>

<h3 id="replay-blockchain"><code class="highlighter-rouge">replay-blockchain</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Clear chain database and replay all blocks.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--replay-blockchain</span>
</code></pre></div></div>

<h3 id="force-open"><code class="highlighter-rouge">force-open</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Force open the database, skipping the environment check.  If the binary or configuration has changed, replay the blockchain explicitly using <code class="highlighter-rouge">--replay-blockchain</code>.  If you know what you are doing you can skip this check and force open the database using <code class="highlighter-rouge">--force-open</code>.</p>

<p><strong>WARNING: THIS MAY CORRUPT YOUR DATABASE. FORCE OPEN AT YOUR OWN RISK.</strong></p>

<p>See: <a href="https://github.com/steemit/steem/issues/3446">#3446</a></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--force-open</span>
</code></pre></div></div>

<h3 id="resync-blockchain"><code class="highlighter-rouge">resync-blockchain</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Clear chain database and block log.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--resync-blockchain</span>
</code></pre></div></div>

<h3 id="stop-replay-at-block"><code class="highlighter-rouge">stop-replay-at-block</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Stop and exit after reaching given block number</p>

<p>See: <a href="https://github.com/steemit/steem/issues/1590">#1590</a></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--stop-replay-at-block</span><span class="o">=</span>1234
</code></pre></div></div>

<h3 id="advanced-benchmark"><code class="highlighter-rouge">advanced-benchmark</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Make profiling for every plugin.</p>

<p>See: <a href="https://github.com/steemit/steem/issues/1996">#1996</a></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--advanced-benchmark</span>
</code></pre></div></div>

<h3 id="set-benchmark-interval"><code class="highlighter-rouge">set-benchmark-interval</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Print time and memory usage every given number of blocks.</p>

<p>See: <a href="https://github.com/steemit/steem/issues/1590">#1590</a></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--set-benchmark-interval</span>
</code></pre></div></div>

<h3 id="dump-memory-details"><code class="highlighter-rouge">dump-memory-details</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Dump database objects memory usage info. Use <code class="highlighter-rouge">set-benchmark-interval</code> to set dump interval.</p>

<p>See: <a href="https://github.com/steemit/steem/issues/1985">#1985</a></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--dump-memory-details</span>
</code></pre></div></div>

<h3 id="check-locks"><code class="highlighter-rouge">check-locks</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Check correctness of <em>chainbase</em> locking.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--check-locks</span>
</code></pre></div></div>

<h3 id="validate-database-invariants"><code class="highlighter-rouge">validate-database-invariants</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Validate all supply invariants check out.</p>

<p>See: <a href="https://github.com/steemit/steem/issues/1477">#1477</a>, <a href="https://github.com/steemit/steem/issues/1649">#1649</a></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--validate-database-invariants</span>
</code></pre></div></div>

<h3 id="database-cfg"><code class="highlighter-rouge">database-cfg</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>The database configuration file location  <strong>MIRA only.</strong></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--database-cfg</span><span class="o">=</span>database.cfg
</code></pre></div></div>

<h3 id="memory-replay"><code class="highlighter-rouge">memory-replay</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Replay with state in memory instead of on disk.  <strong>MIRA only.</strong></p>

<p>See: <a href="https://github.com/steemit/steem/issues/3307">#3307</a></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--memory-replay</span>
</code></pre></div></div>

<h3 id="chain-id"><code class="highlighter-rouge">chain-id</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Chain ID to connect to.  <strong>Testnet only.</strong></p>

<p>See: <a href="https://github.com/steemit/steem/pull/1631">PR#1631</a>, <a href="https://github.com/steemit/steem/issues/2827">#2827</a></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--chain-id</span><span class="o">=</span>d043ab83d223f25f37e1876fe48a240d49d8e4b1daa2342064990a8036a8bb5b
</code></pre></div></div>

<h3 id="account-history-rocksdb-immediate-import"><code class="highlighter-rouge">account-history-rocksdb-immediate-import</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Allows to force immediate data import at plugin startup.  By default storage is supplied during reindex process.</p>

<p>See: <a href="https://github.com/steemit/steem/issues/1987">#1987</a></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--account-history-rocksdb-immediate-import</span>
</code></pre></div></div>

<h3 id="account-history-rocksdb-stop-import-at-block"><code class="highlighter-rouge">account-history-rocksdb-stop-import-at-block</code><a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm"></i></a></h3>

<p>Allows you to specify the block number that the data import process should stop at.</p>

<p>See: <a href="https://github.com/steemit/steem/issues/1987">#1987</a></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">--account-history-rocksdb-stop-import-at-block</span><span class="o">=</span>1234
</code></pre></div></div>

</section>

</div>
<div class="footer">
  <a href="#">Back to top</a>
</div>
<script>
    document.getElementById("open-nav").addEventListener("click", function () {
        document.body.classList.toggle("nav-open");
    });
</script>
</body>
</html>


<script src="/js/adjust.js"></script>

